package com.example.demothree.dao;

import com.example.demothree.bean.UserName;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserNameDao extends JpaRepository<UserName,Long> {
    @Query("from UserName where name = ?1")
    public UserName findUserNameByName(String name);
    @Query("from UserName where employeeId = ?1")
    public UserName findemployeeId(Long id);
    @Query("from UserName where managersId = ?1")
    public UserName findmanagersId(Long id);
}
